﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace HDSmartCommunity.Models
{
    public class DevInfo
    {
        public int ID { get; set; }
        public string unitname { get; set; }
        public int liftid { get; set; }
        public string floor { get; set; }
        public string version { get; set; }
        public int workmode { get; set; }
        public int intervalTime { get; set; }
        public int storage_cycle { get; set; }
        public int ttrAMA1_enable { get; set; }
        public int ttrAMA2_enable { get; set; }
        public int ttrAMA3_enable { get; set; }
        public int network_enable { get; set; }
        public string localIP { get; set; }
        public string mask { get; set; }
        public string gateway { get; set; }
        public string dns { get; set; }
        public string serverIP { get; set; }
        public int serverport { get; set; }
        public string mac { get; set; }
        public string protocoltype { get; set; }
        public string mainIP { get; set; }
        public int mainPort { get; set; }
        public int enable { get; set; }
        public string ntpserver { get; set; }
        public int state { get; set; }
        public int packet { get; set; }
        public int interval { get; set; }
        public int printlog { get; set; }
        public int ttrAMA3_send { get; set; }
        public int ttrAMA3_receive { get; set; }
        public int ttrAMA1_receive { get; set; }
        public int ttrAMA2_receive { get; set; }
        public int sendport { get; set; }
        public int keepopen { get; set; }
        public int lightmode { get; set; }
        public int authmode { get; set; }
        public string updatetime { get; set; }
    }

    public class NetInfo
    {
        public string IP { get; set; }
        public string Router { get; set; }
        public string Server { get; set; }
        public string Mask { get; set; }
    }

    public class AuthMode
    {
        public int ID { get; set; }
        public string name { get; set; }
    }

    public class FaultPoint
    {
        public int id { get; set; }
        public string faultCode { get; set; }
    }

    public class Line18Cmd
    {
        public string cmd { get; set; }
        public int type { get; set; }//是否需要欲启动命令0=不需要 1=需要
        public string activateCmd { get; set; }//欲启动命令
    }

    public class Line18NetInfo
    {
        public int ID { get; set; }//网口ID
        public string IP { get; set; }//IP地址
        public string GateWay { get; set; }//网关
        public string Mask { get; set; }//子网掩码
        public string RouteIP { get; set; }//路由IP地址
        public string RouteGateWay { get; set; }//路由网关
        public string RouteMask { get; set; }//路由子网掩码
    }

    public class HDCmdInfo
    {
        public string cmd { get; set; }
        public string cmdType { get; set; }
        public DateTime time { get; set; }
    }
}
